import {
    Entity,
    Column,
    PrimaryGeneratedColumn,
    UpdateDateColumn,
  } from 'typeorm';
  @Entity()
  export class GroupToShare{
    @PrimaryGeneratedColumn('uuid')
    id: string;
  
    @Column()
    groupuuid: string;
  
    @Column()
    shareuuid: string;
  
    @Column('enum', { enum: ['send', 'receive'] })
    type: string;

    @Column()
    sharer: string;
  
    @Column({
      type: 'timestamp without time zone',
      default: () => 'CURRENT_TIMESTAMP',
    })
    create_time: Date;
  
    @UpdateDateColumn({
      type: 'timestamp without time zone',
      default: () => 'CURRENT_TIMESTAMP',
    })
    update_time: Date;
  }
